home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gnome-utils.postrm < prev    next >
Encoding:
Text File  |  2007-04-09  |  1.8 KB  |  49 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installmenu
  4. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  5. # End automatically added section
  6. # Automatically added by dh_gconf
  7. if [ "$1" = purge ]; then
  8.     OLD_DIR=/etc/gconf/schemas
  9.     SCHEMA_FILES="baobab.schemas gnome-dictionary.schemas gnome-screenshot.schemas gnome-search-tool.schemas logview.schemas "
  10.     if [ -d $OLD_DIR ]; then
  11.         for SCHEMA in $SCHEMA_FILES; do
  12.             rm -f $OLD_DIR/$SCHEMA
  13.         done
  14.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  15.     fi
  16. fi
  17. # End automatically added section
  18. # Automatically added by dh_iconcache
  19. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  20. if [ "$1" = "remove" ] && \
  21.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  22.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  23.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  24.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  25.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  26.         # it's not important enough
  27.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  28.     else
  29.         # if the icon theme directory has no subdirs, we can remove the cache
  30.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  31.     fi
  32. fi
  33. # End automatically added section
  34. # Automatically added by dh_desktop
  35. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  36.     update-desktop-database -q
  37. fi
  38. # End automatically added section
  39. # Automatically added by dh_scrollkeeper
  40. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  41.     scrollkeeper-update -q
  42. fi
  43. # End automatically added section
  44. # Automatically added by dh_makeshlibs
  45. if [ "$1" = "remove" ]; then
  46.     ldconfig
  47. fi
  48. # End automatically added section
  49.